<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //1.打印100岁
        var i = 1;
        do {
            console.log('你已经' + i + '岁了');
            i++;
            if (i == 100) {
                console.log("你已经快要成仙了!!!")
            }
        } while (i <= 100)

        //2.询问爱
        do {
            var love = prompt('你爱我吗?(爱/不爱):')
        }while(love != '爱')
        alert('某某我也非常爱你呀!!!')

    </script>
</head>

<body>

</body>

</html>